<?php
    $url = new Url();
?>
<script type="text/javascript" src="<?php echo Yii::app()->params['urlRs']; ?>/js/tiny_mce/tiny_mce.js"></script> 
<script src="<?=Yii::app()->params["urlRs"] ?>/js/messenger.js" type="text/javascript"></script>
<div class="naptien">
    <h2><strong class="clred">Hòm Thư</strong></h2>
</div>
<div class="Tabs clearfix">
    <div class="fl">
        <ul class="clearfix">      
            <li><a href="<?=$url->createUrl("messenger/index")?>"><span><strong>Thư đã nhận</strong></span></a></li>
            <li><a href="<?=$url->createUrl("messenger/sentMessenger")?>"><span><strong>Thư đã gửi</strong></span></a></li>
            <li class="last"><a href="<?=$url->createUrl("messenger/compose")?>" class="active"><span><strong>Gửi thư</strong></span></a></li>
        </ul>
    </div>
    <div class="fr"><button class="btn-orangeSmall" type="button" onclick="sendMail();"><span><b>Gửi</b></span></button></div>
</div>

<div class="box_tab">
    <div class="tab_inner">
        <div class="tab_cont">
            <div class="inner_tab_cont">

                <div class="box_white">
                    <div class="letter">
                        <ul class="form6">
                            <li class="clearfix">
                                <label>Người nhận : </label>
                                <div class="filltext">
                                    <p>
                                        <input type="text" id="receiver_name" name="receiver_name" value="<?=$data['receiver_name']?>" style="width:367px;" class="bg_input">
                                    </p>
                                </div>
                            </li>
                            <li class="clearfix">
                                <label>&nbsp; </label>
                                <div class="filltext">
                                    <p><a href="javascript:void(0);" onclick="checkUser();">Kiểm tra người nhận</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a id="result_check"></a></p>
                                </div>
                            </li>
                            <li class="clearfix">
                                <label>Tiêu đề : </label>
                                <div class="filltext">
                                    <p>
                                        <input type="text" id="subject" name="subject" value="<?=$data['subject']?>" style="width:367px;" class="bg_input">
                                    </p>
                                </div>
                            </li>
                        </ul>

                        <p><textarea name="content1" id="content1" style=" width:98%" rows="30">
                                <?=$data['content']?>
                            </textarea></p>
                        <p align="center"><button class="btn-oranges1" type="button" id="bt_submit"><span><b>Gửi</b></span></button></p>
                    </div>
                    <div id="result_submit"></div>
                </div>
            </div>
        </div>
    </div>
</div>